//
//  <%= prefix %><%= model_name %>.m
//

#import "<%= prefix %><%= model_name %>.h"

@implementation <%= prefix %><%= model_name %>

+ (RKObjectMapping *)objectMapping
{
    RKObjectMapping* mapping = [RKObjectMapping mappingForClass:[self class]];
    [mapping addAttributeMappingsFromDictionary:@{
<%= mapping.join(",\n") %>,
    }];
    return mapping;
}

- (id)initWithCoder:(NSCoder *)coder
{
    self = [[[self class] alloc] init];
    if (self) {
<%= encoders.join("\n") %>
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)coder
{
<%= decoders.join("\n") %>
}

@end